//
//  ItemThumbnailView.h
//  SAYAKA_Table
//
//  Created by numanuma08 on 2013/07/20.
//  Copyright (c) 2013年 勘米良. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Item.h"
@protocol ItemThumbnailViewDelegate;

@interface ItemThumbnailView : UIView {
    IBOutlet UIScrollView *_scrollview;
    CGRect _myFrame;
}
- (void)initializeLayout;
- (void)startAutoScroll;
+ (id)itemThumbnailView;
@property (nonatomic) id<ItemThumbnailViewDelegate> delegate;
@property (nonatomic, strong) IBOutlet UIImageView *imageView;
@property (nonatomic, strong) IBOutlet UILabel *commentLabel;
@property (nonatomic, strong) IBOutlet UILabel *priceLabel;
@property (nonatomic, retain) IBOutlet UILabel *nameLabel;
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, strong) Item *item;
@end


@protocol ItemThumbnailViewDelegate <NSObject>
@optional
- (void)itemThumbnailViewTouchBegan:(ItemThumbnailView*)view;
- (void)itemThumbnailViewTouchEnded:(ItemThumbnailView*)view;
- (void)itemThumbnailViewDidTouchUpInside:(ItemThumbnailView*)view;
@end